﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using arcchallenge.datacontracts;
using arcchallenge.servicecontracts;

namespace arcchallenge.frontend
{
    public class ConsoleFrontend : IFrontend
    {
        public void Run(string[] args)
        {
            this.Out_TransformToFile(new FileTransformationRequest(args[0], args[1]));
        }


        public void In_TransformedLine(string line)
        {
            if (line != null)
                Console.WriteLine("<{0}>", line);
            else
                Console.WriteLine();
        }


        public event Action<FileTransformationRequest> Out_TransformToFile;
    }
}
